package com.meeruu.sg.account.core.domain.model;

import com.meeruu.sg.account.core.domain.model.base.BaseDO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author yangqintao
 * @date 2019-05-16
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "account_frozen_flow")
public class AccountFrozenFlowDO extends BaseDO {

    /**
     * 冻结单id
     */
    private String flowId;

    /**
     * 账户编号
     */
    private String accountId;

    /**
     * 账户类型
     */
    private Integer accountType;

    /**
     * 业务类型
     */
    private Integer flowType;

    /**
     * 关联冻结单id（用于鉴别对应冻结是否解冻）
     */
    private String refFlowId;

    /**
     * 账户组别（1:用户账户、2:商家账户、3:机构账户）
     */
    private Integer accountGroup;

    /**
     * 冻结类型（0:冻结 1：正向解冻 2:逆向解冻）
     */
    private Integer frozenType;

    /**
     * 金额
     */
    private BigDecimal flowFrozen;

    /**
     * 原因
     */
    private String flowReason;

    private Date applyDate;

    private String extendInfo;


}
